{% set clazz = "promoter" %}
{% set title = "我的推广码" %}
{% extends './modules/common/templates/main.html' %}
{% block style %}
  <link rel="stylesheet" type="text/css" href="{{ '/static/css/promoter.css'|version }}" />
{% endblock %}
{% block content %}
  {% if !nested %}
    <header class="bar bar-header">
      {{ macro.back() }}
      <h1 class="title">{{ title }}</h1>
    </header>
  {% endif %}
  <section>
    <div class="qrcode text-center">
      <img src="{{ qrCode }}" />
      <h4 class="text-lg">千丁，把服务做到家</h4>
    </div>
    {% if ua.app %}
    <div class="vspace hspace">
      <button class="button warning" data-share="千丁小区" data-image="{{ qrCode }}" data-url="{{ qrCode }}" data-type="img">分享我的推广码</button>
    </div>
    {% endif %}
    {% if !ua.app %}
      <div class="vspace hspace">
        <a class="button warning" href="/promoter/details">查看详情</a>
      </div>
    {% endif %}
  </section>
{% endblock %}
{% block script %}
  {% parent %}
  <script src="{{ '/static/js/promoter.js'|version }}"></script>
{% endblock %}